package com.huike.game.base;


import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

public class Game11 {


    /**
     * data : {"tem":36,"hum":57,"light":294,"cq2":343,"PM2.5":364,"way":3}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @DatabaseTable(tableName = "environment")
    public static class DataBean {

        public DataBean(){

        }

        public DataBean(int tem, int hum, int light, int cq2, int PM, int way) {
            this.tem = tem;
            this.hum = hum;
            this.light = light;
            this.cq2 = cq2;
            this.PM = PM;
            this.way = way;
        }

        public DataBean( String datatiems,int tem, int hum, int light, int cq2, int PM, int way) {
            this.tem = tem;
            this.hum = hum;
            this.light = light;
            this.cq2 = cq2;
            this.PM = PM;
            this.way = way;
            this.datatiems = datatiems;
        }

        /**
         * tem : 36
         * hum : 57
         * light : 294
         * cq2 : 343
         * PM2.5 : 364
         * way : 3
         */



        @DatabaseField(columnName = "tem")
        private int tem;
        @DatabaseField(columnName = "hum")
        private int hum;
        @DatabaseField(columnName = "light")
        private int light;
        @DatabaseField(columnName = "cq2")
        private int cq2;
        @DatabaseField(columnName = "PM")
        private int PM;
        @DatabaseField(columnName = "way")
        private int way;
        @DatabaseField(columnName = "datatiems")
        private String datatiems;

        public String getTime() {
            return datatiems;
        }

        public void setTime(String time) {
            this.datatiems = time;
        }

        public int getTem() {
            return tem;
        }

        public void setTem(int tem) {
            this.tem = tem;
        }

        public int getHum() {
            return hum;
        }

        public void setHum(int hum) {
            this.hum = hum;
        }

        public int getLight() {
            return light;
        }

        public void setLight(int light) {
            this.light = light;
        }

        public int getCq2() {
            return cq2;
        }

        public void setCq2(int cq2) {
            this.cq2 = cq2;
        }

        public int getPM() {
            return PM;
        }

        public void setPM(int PM) {
            this.PM = PM;
        }

        public int getWay() {
            return way;
        }

        public void setWay(int way) {
            this.way = way;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "tem=" + tem +
                    ", hum=" + hum +
                    ", light=" + light +
                    ", cq2=" + cq2 +
                    ", PM=" + PM +
                    ", way=" + way +
                    ", datatiems='" + datatiems + '\'' +
                    '}';
        }
    }
}
